package com.samehope.ar.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Description:
 * @Author: ZhangLuo
 * @Email: 1946430@qq.com
 */
@Data
public class SendCodeParam {

    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "[1][3-9][0-9]{9}", message = "请填写正确的手机号码")
    private String mobile;

    @NotNull(message = "验证码类型不能为空, 1注册,2找回密码")
    private Integer type;
}
